package cn.topevery.garden.framework.config;

import org.springframework.beans.factory.annotation.Value;
import org.springframework.context.annotation.Configuration;

@Configuration
public class EventFlowConfig {
    public static String wfId;
    public static String wfIdentifier;
    public static String reportId;
    public static String sendId;
    public static String disposalId;
    public static String auditId;
    public static String endId;
    public static String invalidId;
    public static String sourceId;
    public static String cpSourceId;
    public static String cpIndustryId;
    public static String inspectId;
    public static String disposalTreeId;
    public static String templateId;
    public static String reportEvtPrivilege;
    public static String modifyEvtPrivilege;
    public static String reSendEvtPrivilege;
    public static String dbEvtPrivilege;
    public static String cbEvtPrivilege;

    @Value("${hw.event.wf.id:00000000-0000-0000-0000-000000000000}")
    public void setWfId(String wfId) {
        EventFlowConfig.wfId = wfId;
    }

    @Value("${hw.event.wf.identifier:00000000-0000-0000-0000-000000000000}")
    public void setWfIdentifier(String wfIdentifier) {
        EventFlowConfig.wfIdentifier = wfIdentifier;
    }

    @Value("${hw.event.wf.report:00000000-0000-0000-0000-000000000000}")
    public void setReportId(String reportId) {
        EventFlowConfig.reportId = reportId;
    }

    @Value("${hw.event.wf.send:00000000-0000-0000-0000-000000000000}")
    public void setSendId(String sendId) {
        EventFlowConfig.sendId = sendId;
    }

    @Value("${hw.event.wf.disposal:00000000-0000-0000-0000-000000000000}")
    public void setDisposalId(String disposalId) {
        EventFlowConfig.disposalId = disposalId;
    }

    @Value("${hw.event.wf.audit:00000000-0000-0000-0000-000000000000}")
    public void setAuditId(String auditId) {
        EventFlowConfig.auditId = auditId;
    }

    @Value("${hw.event.wf.end:00000000-0000-0000-0000-000000000000}")
    public void setEndId(String endId) {
        EventFlowConfig.endId = endId;
    }

    @Value("${hw.event.wf.invalid:00000000-0000-0000-0000-000000000000}")
    public void setInvalidId(String invalidId) {
        EventFlowConfig.invalidId = invalidId;
    }

    @Value("${hw.event.source:00000000-0000-0000-0000-000000000000}")
    public void setSourceId(String sourceId) {
        EventFlowConfig.sourceId = sourceId;
    }

    @Value("${hw.event.cp.source:00000000-0000-0000-0000-000000000000}")
    public void setCpSourceId(String cpSourceId) {
        EventFlowConfig.cpSourceId = cpSourceId;
    }

    @Value("${hw.event.cp.industry:00000000-0000-0000-0000-000000000000}")
    public void setCpIndustryId(String cpIndustryId) {
        EventFlowConfig.cpIndustryId = cpIndustryId;
    }

    @Value("${hw.event.inspect:00000000-0000-0000-0000-000000000000}")
    public void setInspectId(String inspectId) {
        EventFlowConfig.inspectId = inspectId;
    }

    @Value("${hw.event.wf.disposaltreeid:00000000-0000-0000-0000-000000000000}")
    public void setDisposalTreeId(String disposalTreeId) {
        EventFlowConfig.disposalTreeId = disposalTreeId;
    }

    @Value("${hw.event.wf.templateId:00000000-0000-0000-0000-000000000000}")
    public void setTemplateId(String templateId) {
        EventFlowConfig.templateId = templateId;
    }

    @Value("${hw.event.reportEvtPrivilege:eedbe3a5-ce9e-4151-a305-7676c61d7ef6}")
    public void setReportEvtPrivilege(String reportEvtPrivilege) {
        EventFlowConfig.reportEvtPrivilege = reportEvtPrivilege;
    }

    @Value("${hw.event.modifyEvtPrivilege:52529b7b-c1fc-11eb-bfd8-000c2946c002}")
    public void modifyEvtPrivilege(String modifyEvtPrivilege) {
        EventFlowConfig.modifyEvtPrivilege = modifyEvtPrivilege;
    }

    @Value("${hw.event.reSendEvtPrivilege:45bb476c-c368-11eb-9f63-000c2946c002}")
    public void reSendEvtPrivilege(String reSendEvtPrivilege) {
        EventFlowConfig.reSendEvtPrivilege = reSendEvtPrivilege;
    }

    @Value("${hw.event.dbEvtPrivilege:dfece2bc-c453-11eb-9f63-000c2946c002}")
    public void dbEvtPrivilege(String dbEvtPrivilege) {
        EventFlowConfig.dbEvtPrivilege = dbEvtPrivilege;
    }

    @Value("${hw.event.cbEvtPrivilege:0db90120-c454-11eb-9f63-000c2946c002}")
    public void cbEvtPrivilege(String cbEvtPrivilege) {
        EventFlowConfig.cbEvtPrivilege = cbEvtPrivilege;
    }

    public EventFlowConfig() {
    }

    public boolean equals(Object o) {
        if (o == this) {
            return true;
        } else if (!(o instanceof EventFlowConfig)) {
            return false;
        } else {
            EventFlowConfig other = (EventFlowConfig)o;
            return other.canEqual(this);
        }
    }

    protected boolean canEqual(Object other) {
        return other instanceof EventFlowConfig;
    }


    public String toString() {
        return "EventFlowConfig()";
    }
}